package homework.billing.meter;

public abstract class BaseItemsMeter implements FullMeter {

    @Override
    public double cost(float mileage, float waitingMinute, float totalMinute) {
        return mileageCost(mileage) + waitingMinuteCost(waitingMinute) + totalMinuteCost(totalMinute);
    }

    public abstract double mileageCost(float mileage);
    public abstract double waitingMinuteCost(float waiting);
    public abstract double totalMinuteCost(float totalMinute);
}
